package java8_26.oop.Test_2;

public class Airliner extends Plane {
    private int seat;
    public Airliner(double weight, double height,int seat) {
        super(weight, height);
        this.seat=seat;
    }

    @Override
    public void fly(Pilot p) {
        System.out.println(p.getName()+"驾驶客机，缓慢起飞");
    }

    @Override
    public void quick(Pilot p) {
        System.out.println(p.getName()+"驾驶客机，缓慢加速");
    }

    @Override
    public void land(Pilot p) {
        System.out.println(p.getName()+"驾驶客机,缓慢降落");
    }

    public int getSeat() {
        return seat;
    }

    public void setSeat(int seat) {
        this.seat = seat;
    }
}
